﻿using CMWVS.Core;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;

namespace CMWVS.ConsoleApplication1
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            string solutionFile = Path.Combine(new FileInfo(Assembly.GetExecutingAssembly().Location).Directory.FullName, @"..\..\..\CMWVS.CompileIt\Net4.5\ConsoleApplication1\ConsoleApplication1.sln");

            Application app = new Application();
            app.RegisterDefaults();

            app.MainViewModel.Compile.Execute(new Core.Commands.CompileCommandParamater(new Core.Projects.Solution(new System.IO.FileInfo(solutionFile)), "Release", "Any CPU", new ConsoleTraceListener()));

            Console.ReadLine();
        }
    }
}